package com.lottery.material.enums;

import lombok.Getter;

/**
 * Description：响应结果信息枚举类
 * Created by 朱正磊 on 2019-04-03 16:45
 */
@Getter
public enum ResultEnum {

    SUCCESS(200, "成功"),
    PARAM_ERROR(1, "参数不正确"),
    LOGIN_FAIL(2, "登录失败, 登录信息不正确"),
    LOGOUT_SUCCESS(3, "注销成功"),
    ;

    private Integer code;
    private String message;
    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
